/*****************************************************************************
 *   Copyright (C) 2008 John Schember <john@nachtimwald.com>                 *
 *                                                                           *
 *   This file is part of niwbillmanager.                                    *
 *                                                                           *
 *   niwbillmanager is free software: you can redistribute it and/or         *
 *   modify it under the terms of the GNU General Public License as          *
 *   published by the Free Software Foundation, either version 3 of the      *
 *   License, or (at your option) any later version.                         *
 *                                                                           *
 *   niwbillmanager is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of          *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            *
 *   GNU General Public License for more details.                            *
 *                                                                           *
 *   You should have received a copy of the GNU General Public License       *
 *   along with niwbillmanager. If not, see                                  *
 *   <http://www.gnu.org/licenses/>.                                         *
 *****************************************************************************/

#ifndef BACKEND_H
#define BACKEND_H

#include <backendinterface.h>

class Backend
{
    public:
        Backend();
        ~Backend();

        void loadBackend();
        void unloadBackend();

        QString getName();
        QString getDescription();
        QString getVersion();
        bool isRemote();

        bool isStatic();
        QString getLocation();
        BackendInterface *getBackendInterface();

        void setName(QString name);
        void setDescription(QString description);
        void setVersion(QString version);
        void setStatic(bool setStatic);
        void setRemote(bool isRemote);
        void setLocation(QString location);
        void setStaticInterface(BackendInterface *backendinterface);

    private:
        QString m_name;
        QString m_description;
        QString m_version;
        bool m_remote;
        bool m_static;
        QString m_location;
        BackendInterface *m_backendInterface;
};

#endif /* BACKEND_H */
